//
//  HXRightButtonView.m
//  KD
//
//  Created by 梅洋 on 16/6/16.
//  Copyright © 2016年 Whx. All rights reserved.
//

#import "HXRightButtonView.h"
#import "HXChangeViewController.h"


@implementation HXRightButtonView

- (HXMessageDetailsTableViewController *)viewController:(UIView *)view{
    
    UIResponder *responder = view;
    while ((responder = [responder nextResponder]))
        if ([responder isKindOfClass: [HXMessageDetailsTableViewController class]])
            return (HXMessageDetailsTableViewController *)responder;
    
    return nil;
}




- (IBAction)buttonClick:(UIButton *)sender {
    
    NSLog(@"点击事件");
    _superVC = [self viewController:self];
    
    HXChangeViewController * vc = [[HXChangeViewController alloc] init];
    
    vc.sendKeyGuid = self.KeyGuid;
    vc.sendPrjName = self.PrjName;
    vc.sendBuildCorpName = self.BuildCorpName;
    
    [_superVC.navigationController pushViewController:vc animated:YES];
}

-(void)setPrjName:(NSString *)PrjName{

    _PrjName = PrjName;
}
-(void)setKeyGuid:(NSString *)KeyGuid{

    _KeyGuid = KeyGuid;
}
-(void)setBuildCorpName:(NSString *)BuildCorpName{

    _BuildCorpName = BuildCorpName;
}

@end
